//
//  NetWorkManager.h
//  QuickCure37
//
//  Created by 马文星 on 16/6/18.
//  Copyright © 2016年 Demos. All rights reserved.
//  业务逻辑层（处理数据）
//
// 项目小的话，所有的业务逻辑放在一个类里即可，如果项目大的，要在某一个模块里搞一个业务逻辑层

#import <Foundation/Foundation.h>
@class Users;
@class DoctorsIfonModel;
@interface NetWorkManager : NSObject

//单例
+ (instancetype)sharedManage;

/**
 登录按钮:
 */

- (void)loginUserWihtAccount:(NSString *)account password:(NSString *)password successBlock:(void(^)(Users *dto))successBlock errorBlock:(void(^)(NSString *error))errorBlock;


/**
 天气
 */
- (void)loadWeatherWithCurrentCity:(NSString *)currentcity sucessBlock:(void(^)(NSDictionary *cityDic))ucessBlock errorBlock:(void(^)(NSString *error))errorBlock;


/**
 肿瘤疾病列表接口
 */
-(void)loadDiseaseSubWithCi_id:(int)ci_id page:(int)page successBlock:(void(^)(NSArray *dtoArray))successBlock errorBlock:(void(^)(NSString *error))errorBlock;


/**
 网络获取医生数据
 
 @param paramDic      请求的参数
 @param completeBlock 完成后的回调
 @param errorBlock    网络异常的回调
 */
- (void)loadDoctorsIfonWithParmas:(NSDictionary *)paramDic completeBlock:(void(^)(NSArray<DoctorsIfonModel *> *modelList,NSError *error))completeBlock errorBlock:(void(^)(NSString *error))errorBlock;
@end
